-
Notifications
You must be signed in to change notification settings - Fork 769
Use standard k8s labels and helm labels on ECK Operator pod #8840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Michael Montgomery <[email protected]>
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements standard Kubernetes and Helm labels on ECK operator pods when installed via Helm, while avoiding their inclusion in generated manifests. The change ensures that Helm-managed pods receive proper metadata for better observability and management.
- Adds conditional logic to include full labels (including Helm metadata) on pods only when not in manifest generation mode
- Updates test coverage to verify both StatefulSet and pod template labels are correctly applied
- Maintains backward compatibility by preserving existing behavior during manifest generation
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
deploy/eck-operator/templates/statefulset.yaml | Adds conditional logic to apply full labels including Helm metadata to pod templates |
deploy/eck-operator/templates/tests/statefulset_test.yaml | Adds test case to verify pod template labels are correctly applied with custom podLabels |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(please set the version label on this PR before merging)
Is it a fix for #8584? |
Yes it is. I missed adding that to the initial description, but now have added this. Thank you! |
Picking back up #8278 .
Resolves #8584
This sets some common labels on the ECK operator pod when installed via Helm:
It avoids the previous behavior in #8278 where they are also included in generation: